Optimal. Leaf size=338 \[ -\frac{2 b (2 a-b) (a+b) \sqrt{\cos ^2(e+f x)} \sqrt{1-\frac{a \sin ^2(e+f x)}{a+b}} \sqrt{\sec ^2(e+f x) \left (-a \sin ^2(e+f x)+a+b\right )} \text{EllipticF}\left (\sin ^{-1}(\sin (e+f x)),\frac{a}{a+b}\right )}{15 a^2 f \left (-a \sin ^2(e+f x)+a+b\right )}+\frac{\left (8 a^2+3 a b-2 b^2\right ) \sqrt{\cos ^2(e+f x)} \sqrt{\sec ^2(e+f x) \left (-a \sin ^2(e+f x)+a+b\right )} E\left (\sin ^{-1}(\sin (e+f x))|\frac{a}{a+b}\right )}{15 a^2 f \sqrt{1-\frac{a \sin ^2(e+f x)}{a+b}}}+\frac{2 (2 a-b) \sin (e+f x) \cos ^2(e+f x) \sqrt{\sec ^2(e+f x) \left (-a \sin ^2(e+f x)+a+b\right )}}{15 a f}+\frac{\sin (e+f x) \cos ^2(e+f x) \left (-a \sin ^2(e+f x)+a+b\right ) \sqrt{\sec ^2(e+f x) \left (-a \sin ^2(e+f x)+a+b\right )}}{5 a f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.571286, antiderivative size = 400, normalized size of antiderivative = 1.18, number of steps used = 10, number of rules used = 10, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.4, Rules used = {4148, 6722, 1974, 416, 528, 524, 426, 424, 421, 419} \[ \frac{\left (8 a^2+3 a b-2 b^2\right ) \sqrt{\cos ^2(e+f x)} \sqrt{-a \sin ^2(e+f x)+a+b} \sqrt{a+b \sec ^2(e+f x)} E\left (\sin ^{-1}(\sin (e+f x))|\frac{a}{a+b}\right )}{15 a^2 f \sqrt{1-\frac{a \sin ^2(e+f x)}{a+b}} \sqrt{a \cos ^2(e+f x)+b}}-\frac{2 b (2 a-b) (a+b) \sqrt{\cos ^2(e+f x)} \sqrt{1-\frac{a \sin ^2(e+f x)}{a+b}} \sqrt{a+b \sec ^2(e+f x)} F\left (\sin ^{-1}(\sin (e+f x))|\frac{a}{a+b}\right )}{15 a^2 f \sqrt{-a \sin ^2(e+f x)+a+b} \sqrt{a \cos ^2(e+f x)+b}}+\frac{\sin (e+f x) \cos ^2(e+f x) \left (-a \sin ^2(e+f x)+a+b\right )^{3/2} \sqrt{a+b \sec ^2(e+f x)}}{5 a f \sqrt{a \cos ^2(e+f x)+b}}+\frac{2 (2 a-b) \sin (e+f x) \cos ^2(e+f x) \sqrt{-a \sin ^2(e+f x)+a+b} \sqrt{a+b \sec ^2(e+f x)}}{15 a f \sqrt{a \cos ^2(e+f x)+b}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4148
Rule 6722
Rule 1974
Rule 416
Rule 528
Rule 524
Rule 426
Rule 424
Rule 421
Rule 419
Rubi steps
\begin{align*} \int \cos ^5(e+f x) \sqrt{a+b \sec ^2(e+f x)} \, dx &=\frac{\operatorname{Subst}\left (\int \left (1-x^2\right )^2 \sqrt{a+\frac{b}{1-x^2}} \, dx,x,\sin (e+f x)\right )}{f}\\ &=\frac{\left (\sqrt{\cos ^2(e+f x)} \sqrt{a+b \sec ^2(e+f x)}\right ) \operatorname{Subst}\left (\int \left (1-x^2\right )^{3/2} \sqrt{b+a \left (1-x^2\right )} \, dx,x,\sin (e+f x)\right )}{f \sqrt{b+a \cos ^2(e+f x)}}\\ &=\frac{\left (\sqrt{\cos ^2(e+f x)} \sqrt{a+b \sec ^2(e+f x)}\right ) \operatorname{Subst}\left (\int \left (1-x^2\right )^{3/2} \sqrt{a+b-a x^2} \, dx,x,\sin (e+f x)\right )}{f \sqrt{b+a \cos ^2(e+f x)}}\\ &=\frac{\cos ^2(e+f x) \sqrt{a+b \sec ^2(e+f x)} \sin (e+f x) \left (a+b-a \sin ^2(e+f x)\right )^{3/2}}{5 a f \sqrt{b+a \cos ^2(e+f x)}}-\frac{\left (\sqrt{\cos ^2(e+f x)} \sqrt{a+b \sec ^2(e+f x)}\right ) \operatorname{Subst}\left (\int \frac{\sqrt{a+b-a x^2} \left (-4 a+b+2 (2 a-b) x^2\right )}{\sqrt{1-x^2}} \, dx,x,\sin (e+f x)\right )}{5 a f \sqrt{b+a \cos ^2(e+f x)}}\\ &=\frac{2 (2 a-b) \cos ^2(e+f x) \sqrt{a+b \sec ^2(e+f x)} \sin (e+f x) \sqrt{a+b-a \sin ^2(e+f x)}}{15 a f \sqrt{b+a \cos ^2(e+f x)}}+\frac{\cos ^2(e+f x) \sqrt{a+b \sec ^2(e+f x)} \sin (e+f x) \left (a+b-a \sin ^2(e+f x)\right )^{3/2}}{5 a f \sqrt{b+a \cos ^2(e+f x)}}+\frac{\left (\sqrt{\cos ^2(e+f x)} \sqrt{a+b \sec ^2(e+f x)}\right ) \operatorname{Subst}\left (\int \frac{(8 a-b) (a+b)+\left (-8 a^2-3 a b+2 b^2\right ) x^2}{\sqrt{1-x^2} \sqrt{a+b-a x^2}} \, dx,x,\sin (e+f x)\right )}{15 a f \sqrt{b+a \cos ^2(e+f x)}}\\ &=\frac{2 (2 a-b) \cos ^2(e+f x) \sqrt{a+b \sec ^2(e+f x)} \sin (e+f x) \sqrt{a+b-a \sin ^2(e+f x)}}{15 a f \sqrt{b+a \cos ^2(e+f x)}}+\frac{\cos ^2(e+f x) \sqrt{a+b \sec ^2(e+f x)} \sin (e+f x) \left (a+b-a \sin ^2(e+f x)\right )^{3/2}}{5 a f \sqrt{b+a \cos ^2(e+f x)}}-\frac{\left (2 (2 a-b) b (a+b) \sqrt{\cos ^2(e+f x)} \sqrt{a+b \sec ^2(e+f x)}\right ) \operatorname{Subst}\left (\int \frac{1}{\sqrt{1-x^2} \sqrt{a+b-a x^2}} \, dx,x,\sin (e+f x)\right )}{15 a^2 f \sqrt{b+a \cos ^2(e+f x)}}-\frac{\left (\left (-8 a^2-3 a b+2 b^2\right ) \sqrt{\cos ^2(e+f x)} \sqrt{a+b \sec ^2(e+f x)}\right ) \operatorname{Subst}\left (\int \frac{\sqrt{a+b-a x^2}}{\sqrt{1-x^2}} \, dx,x,\sin (e+f x)\right )}{15 a^2 f \sqrt{b+a \cos ^2(e+f x)}}\\ &=\frac{2 (2 a-b) \cos ^2(e+f x) \sqrt{a+b \sec ^2(e+f x)} \sin (e+f x) \sqrt{a+b-a \sin ^2(e+f x)}}{15 a f \sqrt{b+a \cos ^2(e+f x)}}+\frac{\cos ^2(e+f x) \sqrt{a+b \sec ^2(e+f x)} \sin (e+f x) \left (a+b-a \sin ^2(e+f x)\right )^{3/2}}{5 a f \sqrt{b+a \cos ^2(e+f x)}}-\frac{\left (\left (-8 a^2-3 a b+2 b^2\right ) \sqrt{\cos ^2(e+f x)} \sqrt{a+b \sec ^2(e+f x)} \sqrt{a+b-a \sin ^2(e+f x)}\right ) \operatorname{Subst}\left (\int \frac{\sqrt{1-\frac{a x^2}{a+b}}}{\sqrt{1-x^2}} \, dx,x,\sin (e+f x)\right )}{15 a^2 f \sqrt{b+a \cos ^2(e+f x)} \sqrt{1-\frac{a \sin ^2(e+f x)}{a+b}}}-\frac{\left (2 (2 a-b) b (a+b) \sqrt{\cos ^2(e+f x)} \sqrt{a+b \sec ^2(e+f x)} \sqrt{1-\frac{a \sin ^2(e+f x)}{a+b}}\right ) \operatorname{Subst}\left (\int \frac{1}{\sqrt{1-x^2} \sqrt{1-\frac{a x^2}{a+b}}} \, dx,x,\sin (e+f x)\right )}{15 a^2 f \sqrt{b+a \cos ^2(e+f x)} \sqrt{a+b-a \sin ^2(e+f x)}}\\ &=\frac{2 (2 a-b) \cos ^2(e+f x) \sqrt{a+b \sec ^2(e+f x)} \sin (e+f x) \sqrt{a+b-a \sin ^2(e+f x)}}{15 a f \sqrt{b+a \cos ^2(e+f x)}}+\frac{\cos ^2(e+f x) \sqrt{a+b \sec ^2(e+f x)} \sin (e+f x) \left (a+b-a \sin ^2(e+f x)\right )^{3/2}}{5 a f \sqrt{b+a \cos ^2(e+f x)}}+\frac{\left (8 a^2+3 a b-2 b^2\right ) \sqrt{\cos ^2(e+f x)} E\left (\sin ^{-1}(\sin (e+f x))|\frac{a}{a+b}\right ) \sqrt{a+b \sec ^2(e+f x)} \sqrt{a+b-a \sin ^2(e+f x)}}{15 a^2 f \sqrt{b+a \cos ^2(e+f x)} \sqrt{1-\frac{a \sin ^2(e+f x)}{a+b}}}-\frac{2 (2 a-b) b (a+b) \sqrt{\cos ^2(e+f x)} F\left (\sin ^{-1}(\sin (e+f x))|\frac{a}{a+b}\right ) \sqrt{a+b \sec ^2(e+f x)} \sqrt{1-\frac{a \sin ^2(e+f x)}{a+b}}}{15 a^2 f \sqrt{b+a \cos ^2(e+f x)} \sqrt{a+b-a \sin ^2(e+f x)}}\\ \end{align*}
Mathematica [F] time = 11.436, size = 0, normalized size = 0. \[ \int \cos ^5(e+f x) \sqrt{a+b \sec ^2(e+f x)} \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.747, size = 6392, normalized size = 18.9 \begin{align*} \text{output too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{b \sec \left (f x + e\right )^{2} + a} \cos \left (f x + e\right )^{5}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\sqrt{b \sec \left (f x + e\right )^{2} + a} \cos \left (f x + e\right )^{5}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{b \sec \left (f x + e\right )^{2} + a} \cos \left (f x + e\right )^{5}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]